<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>统计分析</title>
<%@ include file="../../common.jsp"%>
<%@ include file="../../base.jsp"%>
<link type="text/css" rel="stylesheet" href="static/css/analysis.css" />
<script type="text/javascript" src="static/js/analysis.js"></script>
</head>
<body>
	<%-- <div class="head">
			<%@ include file="../head.jsp"%>
	</div> --%>

	<!-- 隐藏页面加载过来默认的产品 -->
	<input type="hidden" id="productnameMR" />

	<!-- 隐藏页面加载过来默认的产品 -->
	<input type="hidden" id="goodsnameMR" />
	<div class="all">


		<%-- <div class="menu">
			<%@ include file="../function.jsp"%>
		</div> --%>

		<div class="content">
			<div class="address1">
				<span>当前位置：统计分析</span>
			</div>

			<form data-fly-form id="form_demo" class="fix" method="post"
				action="goods/reportExport">


				<div data-fly-form-element
					data-fly-options="{ tip:'全部',name: 'productName', title: '商铺名称：',width:'1/3',required: true, type: 'combobox' ,
					 data:[],valueField:'dm',textField:'mc',initValue:'-1' }">
				</div>

				<div style="margin-left: 50px;" data-fly-form-element
					data-fly-options="{ tip:'全部',name: 'goodsName', title: '商品名称：',width:'1/3',required: true, type: 'combobox', 
					data:[],valueField:'dm',textField:'mc',initValue:'-1' }">
				</div>

				<div data-fly-form-element
					data-fly-options="{name: 'starttime', title: '起始日期：', 
        width:'1/3',dateFmt:'yyyy-MM-dd',required: true,type: 'datepicker', maxDate:'%y-%M-%d',id:'date1'}">
				</div>
				<div style="margin-left: 50px;" data-fly-form-element
					data-fly-options="{name: 'endtime', title: '结束日期：', 
         width:'1/3',dateFmt:'yyyy-MM-dd',required: true,type: 'datepicker', minDate:'#F{$dp.$D(\'date1\')}',maxDate:'%y-%M-%d',id:'date2'}">
				</div>


				<button id="publish" class="hidden btn btn-default"
					data-fly-button="" type="button"
					style="margin-left: 150px; margin-top: 40px;"
					data-fly-options="{cls: 'default', disabled: false}">查询</button>

			</form>

			<div id="queryGrid" class="fly-grid">
				<div class="fly-grid-body">
					<table class="fly-table">
						<thead class="fly-table-header">
							<tr>
								<th title="序号" width="10">序号</th>
								<th title="店铺名称" width="80">店铺名称</th>
								<th title="商品名称" width="40">商品名称</th>
								<th title="下货数" width="40">下货数</th>
							</tr>
						</thead>
						<tbody class="fly-table-body" id="List"></tbody>
					</table>
				</div>
			</div>

			<div id="excel">
				<button id="export" class="hidden btn btn-default"
					data-fly-button="" type="button"
					data-fly-options="{cls: 'default', disabled: false}">excel导出</button>
				<input id="hidden" type="hidden" value="${requestScope.name}"></input>
				<input id="hidden1" type="hidden" value="${requestScope.name}"></input>
			</div>

		</div>

	</div>
</body>
<script type="text/html" id="listTemplate">
<!-- eclipse下需要转移所以会需要\ -->
<tr>
    <td title="\${seriaNumber}"><div class="ell">\${seriaNumber}</div></td>
    <td title="\${shopname}"><div class="ell">\${shopname}</div></td>
    <td title="\${goodsname}"><div class="ell">\${goodsname}</div></td>
   <td title="\${totalcount}"><div class="ell">\${totalcount}</div></td>
</tr>
</script>
</html>